package com.qf.shopping.dto.systemDTO;

import java.io.Serializable;
import java.util.List;

public class UserShiro implements Serializable {

    private int id;

    private String userName;

    private String password;

    private List<ResourceShiro> resources;

    public UserShiro() {
    }

    public UserShiro(int id, String userName, String password, List<ResourceShiro> resources) {
        this.id = id;
        this.userName = userName;
        this.password = password;
        this.resources = resources;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public List<ResourceShiro> getResources() {
        return resources;
    }

    public void setResources(List<ResourceShiro> resources) {
        this.resources = resources;
    }

    @Override
    public String toString() {
        return "UserShiro{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", resources=" + resources +
                '}';
    }
}
